<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>分页插件演示</title>
  <link rel="stylesheet" href="custom-pagination.min.css" /><!-- 1.引入css -->
  <style type="text/css">
    html,body{
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
      border: 0;
    }
    #page{
      width: 100%;
      height: 80px;
      margin: 50px 0;
    }
  </style>
</head>
<body>
  <div id="page" class="page"></div><!-- 2.创建一个页码容器，设定宽度 -->

  <script type="text/javascript" src="custom-pagination.min.js"></script><!-- 3.引入js -->
  <script type="text/javascript">
    // 4.调用插件
    var box = new CustomPagination('#page', {
      total: 1,//总页数
      changePage: function (pageNum) {//切换页码成功回调
        console.log('当前页码：'+pageNum)
      }
    });
  </script>
</body>
</html>